﻿<navigation:Page xmlns:Control="clr-namespace:Galnote.Control"  x:Class="Galnote.IndexPage.IndexPageTemplate.Body" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
					 xmlns:Extensions="clr-namespace:Sakura.Silverlight.Extensions;assembly=SLExtension"
					 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignHeight="600" d:DesignWidth="1920"
           Title="Body Page">

	<!--左侧列表，右侧预览与下载，比例为1：0.618-->
	<Grid x:Name="LayoutRoot">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="1*"/>
			<ColumnDefinition Width="0.625*"/>
		</Grid.ColumnDefinitions>

		<!--引导页面：壁纸（自制，动画，适量，游戏）、图片（动画，画师，游戏，其他）、原创（图片，画集，涂鸦，小说）-->
		<Grid>
			<Button Content="动画" HorizontalAlignment="Left" Margin="137,113,0,0" VerticalAlignment="Top" Width="75"/>
			<Button Content="自制" HorizontalAlignment="Left" Margin="137,171,0,0" VerticalAlignment="Top" Width="75"/>
			<Button Content="游戏" HorizontalAlignment="Left" Margin="137,230,0,0" VerticalAlignment="Top" Width="75"/>
			<HyperlinkButton Content="前往动画壁纸页面" HorizontalAlignment="Left" Margin="243,119,0,0" VerticalAlignment="Top" NavigateUri="/PreviewList/PreviewDisplay.xaml" TargetName="BodyPage"/>
		</Grid>

		<!--预览与下载页面-->
		<Grid Grid.Column="1">
			<sdk:TabControl Style="{StaticResource ResourceKey=SwitchLeftBottomStyle}" TabStripPlacement="Left">
				<sdk:TabItem Style="{StaticResource ResourceKey=SwitchTabItemLeftTemplate}" Header="预览">
					<Grid>
						<Line X1="0" X2="0" Y1="0" Y2="4000" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,3" HorizontalAlignment="Left" Margin="0,0,0,100"/>
						<Grid Margin="5,5">
							<Grid.RowDefinitions>
								<RowDefinition Height="0.08*"/>
								<RowDefinition Height="1*"/>
								<RowDefinition Height="0.15*"/>
								<RowDefinition Height="0.15*"/>
							</Grid.RowDefinitions>
							<!--Tittle-->
							<TextBlock Style="{StaticResource ResourceKey=GenericTitleStyle}" Text="标题：这么可爱的一定是男孩子" Margin="10,0,0,0"/>

							<!--Image For Download-->
							<Border Grid.Row="1">
								<Image Source="/Images/00003.jpg" Stretch="Uniform"/>
							</Border>

							<!--发布人与时间-->
							<Grid Grid.Row="3">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="50"/>
									<ColumnDefinition/>
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition/>
									<RowDefinition/>
								</Grid.RowDefinitions>
								<Button x:Name="AboutMeAvatarButton" Grid.RowSpan="2" Style="{StaticResource ResourceKey=GenericBtnStyle}" Cursor="Hand">
									<Image Style="{StaticResource ResourceKey=GenericAvatarStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" Width="42" Height="42" Source="/Images/Avatar.jpg" Margin="5,8,0,0"/>
								</Button>
								<Border Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="8,0,0,0">
									<StackPanel Orientation="Horizontal">
										<TextBlock Style="{StaticResource ResourceKey=GenericTitleStyle}" FontSize="11" Text="By"/>
										<Button x:Name="AboutMeTextButton" Style="{StaticResource ResourceKey=GenericBtnStyle}" Cursor="Hand">
											<TextBlock Style="{StaticResource ResourceKey=HeaderUserIDStyle}" FontWeight="Bold" Text="存在" Margin="3,0,0,0" />
										</Button>
									</StackPanel>
								</Border>
								<Border Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="8,8,0,0">
									<StackPanel Orientation="Horizontal">
										<Image Source="/Images/Timedata.jpg" Width="15" Height="15" />
										<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" FontWeight="Bold" Text="3 days 2 Hours 15Mins" DataContext="{Binding ElementName=RevisionContentIMGLB,Path=SelectedItem}"/>
									</StackPanel>
								</Border>
							</Grid>
							
						</Grid>

					</Grid>
				</sdk:TabItem>
				<sdk:TabItem Style="{StaticResource ResourceKey=SwitchTabItemLeftTemplate}" Header="留言">
					<Grid>
						<Line X1="0" X2="0" Y1="0" Y2="4000" Stretch="Fill" Stroke="#FFB4B4B4" StrokeDashArray="8,3" HorizontalAlignment="Left" Margin="0,0,0,100"/>
					</Grid>
				</sdk:TabItem>
			</sdk:TabControl>

		</Grid>



	</Grid>
</navigation:Page>
